package com.glela.common.beans.log.active;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CLoginLogExample
{
	public static class Criteria extends GeneratedCriteria
	{

		protected Criteria()
		{
			super();
		}
	}

	public static class Criterion
	{
		private final String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private final String typeHandler;

		protected Criterion(String condition)
		{
			super();
			this.condition = condition;
			typeHandler = null;
			noValue = true;
		}

		protected Criterion(String condition, Object value)
		{
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue)
		{
			this(condition, value, secondValue, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler)
		{
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			betweenValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler)
		{
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				listValue = true;
			}
			else {
				singleValue = true;
			}
		}

		public String getCondition()
		{
			return condition;
		}

		public Object getSecondValue()
		{
			return secondValue;
		}

		public String getTypeHandler()
		{
			return typeHandler;
		}

		public Object getValue()
		{
			return value;
		}

		public boolean isBetweenValue()
		{
			return betweenValue;
		}

		public boolean isListValue()
		{
			return listValue;
		}

		public boolean isNoValue()
		{
			return noValue;
		}

		public boolean isSingleValue()
		{
			return singleValue;
		}
	}

	protected abstract static class GeneratedCriteria
	{
		protected List<Criterion> criteria;

		protected GeneratedCriteria()
		{
			super();
			criteria = new ArrayList<Criterion>();
		}

		public Criteria andIdBetween(Long value1, Long value2)
		{
			addCriterion("ID between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdEqualTo(Long value)
		{
			addCriterion("ID =", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThan(Long value)
		{
			addCriterion("ID >", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThanOrEqualTo(Long value)
		{
			addCriterion("ID >=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdIn(List<Long> values)
		{
			addCriterion("ID in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdIsNotNull()
		{
			addCriterion("ID is not null");
			return (Criteria) this;
		}

		public Criteria andIdIsNull()
		{
			addCriterion("ID is null");
			return (Criteria) this;
		}

		public Criteria andIdLessThan(Long value)
		{
			addCriterion("ID <", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThanOrEqualTo(Long value)
		{
			addCriterion("ID <=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotBetween(Long value1, Long value2)
		{
			addCriterion("ID not between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotEqualTo(Long value)
		{
			addCriterion("ID <>", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotIn(List<Long> values)
		{
			addCriterion("ID not in", values, "id");
			return (Criteria) this;
		}

		public Criteria andLoginIpBetween(String value1, String value2)
		{
			addCriterion("login_ip between", value1, value2, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpEqualTo(String value)
		{
			addCriterion("login_ip =", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpGreaterThan(String value)
		{
			addCriterion("login_ip >", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpGreaterThanOrEqualTo(String value)
		{
			addCriterion("login_ip >=", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpIn(List<String> values)
		{
			addCriterion("login_ip in", values, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpIsNotNull()
		{
			addCriterion("login_ip is not null");
			return (Criteria) this;
		}

		public Criteria andLoginIpIsNull()
		{
			addCriterion("login_ip is null");
			return (Criteria) this;
		}

		public Criteria andLoginIpLessThan(String value)
		{
			addCriterion("login_ip <", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpLessThanOrEqualTo(String value)
		{
			addCriterion("login_ip <=", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpLike(String value)
		{
			addCriterion("login_ip like", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpNotBetween(String value1, String value2)
		{
			addCriterion("login_ip not between", value1, value2, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpNotEqualTo(String value)
		{
			addCriterion("login_ip <>", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpNotIn(List<String> values)
		{
			addCriterion("login_ip not in", values, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginIpNotLike(String value)
		{
			addCriterion("login_ip not like", value, "loginIp");
			return (Criteria) this;
		}

		public Criteria andLoginTimeBetween(Date value1, Date value2)
		{
			addCriterion("login_time between", value1, value2, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeEqualTo(Date value)
		{
			addCriterion("login_time =", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeGreaterThan(Date value)
		{
			addCriterion("login_time >", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeGreaterThanOrEqualTo(Date value)
		{
			addCriterion("login_time >=", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeIn(List<Date> values)
		{
			addCriterion("login_time in", values, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeIsNotNull()
		{
			addCriterion("login_time is not null");
			return (Criteria) this;
		}

		public Criteria andLoginTimeIsNull()
		{
			addCriterion("login_time is null");
			return (Criteria) this;
		}

		public Criteria andLoginTimeLessThan(Date value)
		{
			addCriterion("login_time <", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeLessThanOrEqualTo(Date value)
		{
			addCriterion("login_time <=", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeNotBetween(Date value1, Date value2)
		{
			addCriterion("login_time not between", value1, value2, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeNotEqualTo(Date value)
		{
			addCriterion("login_time <>", value, "loginTime");
			return (Criteria) this;
		}

		public Criteria andLoginTimeNotIn(List<Date> values)
		{
			addCriterion("login_time not in", values, "loginTime");
			return (Criteria) this;
		}

		public Criteria andResultBetween(String value1, String value2)
		{
			addCriterion("result between", value1, value2, "result");
			return (Criteria) this;
		}

		public Criteria andResultDescBetween(String value1, String value2)
		{
			addCriterion("result_desc between", value1, value2, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescEqualTo(String value)
		{
			addCriterion("result_desc =", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescGreaterThan(String value)
		{
			addCriterion("result_desc >", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescGreaterThanOrEqualTo(String value)
		{
			addCriterion("result_desc >=", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescIn(List<String> values)
		{
			addCriterion("result_desc in", values, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescIsNotNull()
		{
			addCriterion("result_desc is not null");
			return (Criteria) this;
		}

		public Criteria andResultDescIsNull()
		{
			addCriterion("result_desc is null");
			return (Criteria) this;
		}

		public Criteria andResultDescLessThan(String value)
		{
			addCriterion("result_desc <", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescLessThanOrEqualTo(String value)
		{
			addCriterion("result_desc <=", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescLike(String value)
		{
			addCriterion("result_desc like", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescNotBetween(String value1, String value2)
		{
			addCriterion("result_desc not between", value1, value2, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescNotEqualTo(String value)
		{
			addCriterion("result_desc <>", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescNotIn(List<String> values)
		{
			addCriterion("result_desc not in", values, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultDescNotLike(String value)
		{
			addCriterion("result_desc not like", value, "resultDesc");
			return (Criteria) this;
		}

		public Criteria andResultEqualTo(String value)
		{
			addCriterion("result =", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultGreaterThan(String value)
		{
			addCriterion("result >", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultGreaterThanOrEqualTo(String value)
		{
			addCriterion("result >=", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultIn(List<String> values)
		{
			addCriterion("result in", values, "result");
			return (Criteria) this;
		}

		public Criteria andResultIsNotNull()
		{
			addCriterion("result is not null");
			return (Criteria) this;
		}

		public Criteria andResultIsNull()
		{
			addCriterion("result is null");
			return (Criteria) this;
		}

		public Criteria andResultLessThan(String value)
		{
			addCriterion("result <", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultLessThanOrEqualTo(String value)
		{
			addCriterion("result <=", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultLike(String value)
		{
			addCriterion("result like", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotBetween(String value1, String value2)
		{
			addCriterion("result not between", value1, value2, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotEqualTo(String value)
		{
			addCriterion("result <>", value, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotIn(List<String> values)
		{
			addCriterion("result not in", values, "result");
			return (Criteria) this;
		}

		public Criteria andResultNotLike(String value)
		{
			addCriterion("result not like", value, "result");
			return (Criteria) this;
		}

		public Criteria andUserIdBetween(Long value1, Long value2)
		{
			addCriterion("user_id between", value1, value2, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdEqualTo(Long value)
		{
			addCriterion("user_id =", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdGreaterThan(Long value)
		{
			addCriterion("user_id >", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdGreaterThanOrEqualTo(Long value)
		{
			addCriterion("user_id >=", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdIn(List<Long> values)
		{
			addCriterion("user_id in", values, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdIsNotNull()
		{
			addCriterion("user_id is not null");
			return (Criteria) this;
		}

		public Criteria andUserIdIsNull()
		{
			addCriterion("user_id is null");
			return (Criteria) this;
		}

		public Criteria andUserIdLessThan(Long value)
		{
			addCriterion("user_id <", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdLessThanOrEqualTo(Long value)
		{
			addCriterion("user_id <=", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotBetween(Long value1, Long value2)
		{
			addCriterion("user_id not between", value1, value2, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotEqualTo(Long value)
		{
			addCriterion("user_id <>", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotIn(List<Long> values)
		{
			addCriterion("user_id not in", values, "userId");
			return (Criteria) this;
		}

		public List<Criterion> getAllCriteria()
		{
			return criteria;
		}

		public List<Criterion> getCriteria()
		{
			return criteria;
		}

		public boolean isValid()
		{
			return criteria.size() > 0;
		}

		protected void addCriterion(String condition)
		{
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property)
		{
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		protected void addCriterion(String condition, Object value, String property)
		{
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}
	}

	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public CLoginLogExample()
	{
		oredCriteria = new ArrayList<Criteria>();
	}

	public void clear()
	{
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	public Criteria createCriteria()
	{
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	public String getOrderByClause()
	{
		return orderByClause;
	}

	public List<Criteria> getOredCriteria()
	{
		return oredCriteria;
	}

	public boolean isDistinct()
	{
		return distinct;
	}

	public Criteria or()
	{
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public void or(Criteria criteria)
	{
		oredCriteria.add(criteria);
	}

	public void setDistinct(boolean distinct)
	{
		this.distinct = distinct;
	}

	public void setOrderByClause(String orderByClause)
	{
		this.orderByClause = orderByClause;
	}

	protected Criteria createCriteriaInternal()
	{
		Criteria criteria = new Criteria();
		return criteria;
	}
}